//add attack string
function onAdd(preferencesController) {
    var stringTxtBox = document.getElementById('attackstringtxtbox');

    if (!stringTxtBox.value.length){
        alert("Please enter an attack string");
        stringTxtBox.select();
        return false;
    }
  
	if(!preferencesController.preferenceStringContainer.addString(stringTxtBox.value)){
		alert("Attack string exists. Please enter another one.");
		stringTxtBox.select();
		return false;
	}
	else
		return true;
}

function onConfirm(){    
    return true;
}
